package com.gopay.common.domain.dps;

import com.gopay.common.domain.BaseEntity;

import javax.persistence.*;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 红包业务主表
 * Created by boai on 2017/1/5.
 */
@Entity
@Table(name = "wa_bouns_main_order")
public class WaBounsMainOrder extends BaseEntity {
	private static final long serialVersionUID = -3084046029040489L;
	private Integer bounsMainOrderId ;
	private String gopayOrderId;
	private String bounsType;
	private BigDecimal bounsAmt;
	private int bounsNum;
	private String wordStatus;
	private BigDecimal alreadyAmt;
	private int alreadyNum;
	private String bounsStatus;
	private String bounsWord;
	private Date createTime;
	private Date updateTime;
	private Integer version;
	private String payCustId;
	private String payAcctId;
	private String recvCustId;
	private String recvAcctId;
	private int bounsStaCd; //红包交易状态 用于钱包交易详情 add by zhoupeng 20170511
	private String remark;
	@Id
    @Column(name = "bouns_main_order_id")
    @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "wa_bouns_main_order_seq")
    @SequenceGenerator(name = "wa_bouns_main_order_seq", allocationSize = 1, initialValue = 1, sequenceName = "wa_bouns_main_order_seq")
	public Integer getBounsMainOrderId() {
		return bounsMainOrderId;
	}
	public void setBounsMainOrderId(Integer bounsMainOrderId) {
		this.bounsMainOrderId = bounsMainOrderId;
	}
	@Column(name = "gopay_order_id")
	public String getGopayOrderId() {
		return gopayOrderId;
	}

	public void setGopayOrderId(String gopayOrderId) {
		this.gopayOrderId = gopayOrderId;
	}
	@Column(name = "bouns_type")
	public String getBounsType() {
		return bounsType;
	}

	public void setBounsType(String bounsType) {
		this.bounsType = bounsType;
	}
	@Column(name = "bouns_amt")
	public BigDecimal getBounsAmt() {
		return bounsAmt;
	}

	public void setBounsAmt(BigDecimal bounsAmt) {
		this.bounsAmt = bounsAmt;
	}
	@Column(name = "bouns_num")
	public int getBounsNum() {
		return bounsNum;
	}

	public void setBounsNum(int bounsNum) {
		this.bounsNum = bounsNum;
	}
	@Column(name = "word_status")
	public String getWordStatus() {
		return wordStatus;
	}

	public void setWordStatus(String wordStatus) {
		this.wordStatus = wordStatus;
	}
	@Column(name = "already_amt")
	public BigDecimal getAlreadyAmt() {
		return alreadyAmt;
	}

	public void setAlreadyAmt(BigDecimal alreadyAmt) {
		this.alreadyAmt = alreadyAmt;
	}
	@Column(name = "already_num")
	public int getAlreadyNum() {
		return alreadyNum;
	}

	public void setAlreadyNum(int alreadyNum) {
		this.alreadyNum = alreadyNum;
	}
	@Column(name = "bouns_status")
	public String getBounsStatus() {
		return bounsStatus;
	}

	public void setBounsStatus(String bounsStatus) {
		this.bounsStatus = bounsStatus;
	}
	@Column(name = "bouns_word")
	public String getBounsWord() {
		return bounsWord;
	}

	public void setBounsWord(String bounsWord) {
		this.bounsWord = bounsWord;
	}
	@Column(name = "create_time")
	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	@Column(name = "update_time")
	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	@Version
	@Column(name = "version")
	public Integer getVersion() {
		return version;
	}

	public void setVersion(Integer version) {
		this.version = version;
	}
	@Column(name = "pay_cust_id")
	public String getPayCustId() {
		return payCustId;
	}

	public void setPayCustId(String payCustId) {
		this.payCustId = payCustId;
	}
	@Column(name = "pay_acct_id")
	public String getPayAcctId() {
		return payAcctId;
	}

	public void setPayAcctId(String payAcctId) {
		this.payAcctId = payAcctId;
	}
	@Column(name = "recv_cust_id")
	public String getRecvCustId() {
		return recvCustId;
	}

	public void setRecvCustId(String recvCustId) {
		this.recvCustId = recvCustId;
	}
	@Column(name = "recv_acct_id")
	public String getRecvAcctId() {
		return recvAcctId;
	}

	public void setRecvAcctId(String recvAcctId) {
		this.recvAcctId = recvAcctId;
	}
	@Column(name = "remark")
	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}
	@Column(name = "bouns_sta_cd")
	public int getBounsStaCd() {
		return bounsStaCd;
	}
	public void setBounsStaCd(int bounsStaCd) {
		this.bounsStaCd = bounsStaCd;
	}
	
}
